import request from '@/utils/request'
// 登录的接口
export function reqLogin (form) {
  return request({
    method: 'post',
    url: '/api/login',
    data: form
  })
}

// 注册的接口
export function reqReg (form) {
  return request({
    method: 'post',
    url: '/api/reg',
    data: form
  })
}

// 获取个人信息接口
export function reqGetUserInfo () {
  return request({
    method: 'get',
    url: '/my/userinfo'
    // headers: {
    //   Authorization: localStorage.getItem('cms-token')
    // }
  })
}
